import request from '@/utils/request.js'
const api_name = '/portal'

//侧边栏
export function getSideBar () {
  return request({
    url: `${api_name}/sidebar`,
    method: 'get'
  })
}

//轮播图
export function getAdList () {
  return request({
    url: `${api_name}/ad`,
    method: 'get'
  })
}

//推荐课程
export function getRecommendCourse () {
  return request({
    url: `${api_name}/course/recommend`,
    method: 'get'
  })
}

//新上好课
export function getNewCourse () {
  return request({
    url: `${api_name}/course/new`,
    method: 'get'
  })
}

//新手入门
export function getGuideCourse () {
  return request({
    url: `${api_name}/course/guide`,
    method: 'get'
  })
}

//技能提升
export function getImproveCourse () {
  return request({
    url: `${api_name}/course/improve`,
    method: 'get'
  })
}

//前沿技术
export function getTechnologyCourse () {
  return request({
    url: `${api_name}/course/technology`,
    method: 'get'
  })
}

//讲师列表
export function getTeacherList () {
  return request({
    url: `${api_name}/teacher`,
    method: 'get'
  })
}

